<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="dist/vue.js"></script>
  <style>
    .box {
      width: 100px;
      height: 100px;
      background-color: #f66;
    }
  </style>
</head>
<body>
  <div id="app">
    <!-- <input type="text" @keyup.enter="search"> {{ count }} -->
    <!-- <input type="text" @keyup.13="search"> {{ count }} -->
    <!-- <input type="text" @keyup.65="search"> {{ count }} -->
    <input type="text" @keyup.enter="search"> {{ count }}
  </div>
</body>
<script>
  // v-if 与 v-show的区别
  const vm = new Vue({
    el: '#app',
    data: {
      count: 0
    },
    methods: {
      search () {
        this.count++
        console.log(this.count)
      }
    }
  })

</script>
</html>